package com.lightheart.sphr.xiaobinggan.fragment;

import android.view.View;
import android.widget.TextView;
import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.base.BaseFragment;
import com.lightheart.sphr.xiaobinggan.kg.event.Switch;
import com.lightheart.sphr.xiaobinggan.module.my.MyFragment;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;

public class FragmentThree extends BaseFragment {

    @BindView(R.id.tv)
    TextView tv;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_three_layout;
    }


    @Override
    protected void initInjector() {
    }

    @Override
    protected void initView(View view) {
        tv.setOnClickListener(view1 -> {
            EventBus.getDefault().post(new Switch(true));
        });
    }
}
